package com.ktjy.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ktjy.pojo.SysRight;
import com.ktjy.pojo.SysRoleRight;
import com.ktjy.pojo.SysUser;
import com.ktjy.pojo.vo.SysUserVo;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.conditions.Wrapper;

import java.util.List;

public interface SysUserService extends IService<SysUserVo> {
    /**
     * 登录
     *
     * @param usrName     用户名
     * @param usrPassword 密码
     * @return 对象
     */
    SysUserVo login(String usrName, String usrPassword);
    SysUserVo loginToken(String usrName);

    /**
     * 查询总记录数
     *
     * @return 总记录数
     */

    /**
     * 查询列表
     *
     * @return 集合
     */
    IPage<SysUserVo> getUserList(IPage<SysUserVo> page, SysUserVo sysUserVo);

    int getUserAdd(SysUserVo sysUserVo);
    int getUserUpdate(SysUserVo sysUserVo);
    SysUserVo UserSelectById(Long usrId);
    int getUserDelete(Integer id);

    List<SysRoleRight> getListSysRight(Long roleId);

}
